import javax.swing.ImageIcon;


public class Tax extends Block{
	private String myName = super.getMyName();
	private ImageIcon[] ii;
	
	public Tax(String name, int Location) {
		super(name, Location);
		ii = new ImageIcon[2];
		ii[0] = new ImageIcon("images/advance-to-go.gif");
		ii[1] = new ImageIcon("images/advance-to-go.gif");
	}
	
	public void setMyName(String myName) {
		this.myName = myName;
	}
	
	public String getMyName() {
		return myName;
	}
	
	public void collectTax(Player player, int payment, monopolyGUI ui, int temp){
		ui.setUI(ii[temp]);
		player.setMoney(player.getMoney()-payment);
	}
	
	public void collectTax(Player player, int payment, monopolySolo ui, int temp){
		ui.setUI(ii[temp]);
		player.setMoney(player.getMoney()-payment);
	}
}
